//
//  DetailViewController.h
//  MGSplitView
//
//  Created by Matt Gemmell on 26/07/2010.
//  Copyright Instinctive Code 2010.
//

#import <UIKit/UIKit.h>
#import "MGSplitViewController.h"
#import "KChart.h"


@interface MGChartViewController : UIViewController <MGSplitViewControllerDelegate> {

	MGSplitViewController *splitController;
	
    UIToolbar *toolbar;
   
    UIBarButtonItem *UIBarButtonItem_toggleMasterView;    
    UIBarButtonItem *UIBarButtonItem_toggleVertical;
    UIBarButtonItem *UIBarButtonItem_toggleDividerStyle;
    UIBarButtonItem *UIBarButtonItem_toggleMasterBeforeDetail ;
    
    id detailItem;
    UILabel *detailDescriptionLabel;
    
    KChart *ccchart;   
    CGRect detail_frame;    
}
@property (nonatomic, retain) KChart *ccchart;
@property (nonatomic, retain) MGSplitViewController *splitController;
@property (nonatomic, retain) UIToolbar *toolbar;
@property (nonatomic, retain) id detailItem;
@property (nonatomic, retain) UILabel *detailDescriptionLabel;

-(void)set_new_frame:(CGRect)frame;

- (void)toggleMasterView:(id)sender;
- (void)toggleVertical:(id)sender;
- (void)toggleDividerStyle:(id)sender;
- (void)toggleMasterBeforeDetail:(id)sender;

 @end
